package com.hyd.manage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hyd.common.annotation.Excel;
import com.hyd.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 药品销售记录对象 tb_sales_record
 *
 * @author hwb
 * @date 2025-02-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SalesRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，自增 */
    private Long id;

    /** 药品批次号，关联药品信息表 */
    @Excel(name = "药品批次号，关联药品信息表")
    private String batchNumber;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;

    /** 药品类型 */
    @Excel(name = "药品类型")
    private String drugType;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long quantity;

    /** 药品单位，如片、瓶、盒等 */
    @Excel(name = "药品单位，如片、瓶、盒等")
    private String unit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal salePrice;

    @Excel(name = "会员价格")
    private BigDecimal memberPrice;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stockQuantity;

    /** 小计 */
    @Excel(name = "小计")
    private BigDecimal totalAmount;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 销售日期和时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售日期和时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleDate;

    /** 药品编码 */
    @Excel(name = "药品编码")
    private String medicineCode;

}
